package com.linksoul.enums;

public enum ResultCode {
    SUCCESS(200, "操作成功"),
    FAILED(500, "操作失败"),
    UNAUTHORIZED(401, "未授权"),
    NOT_FOUND(404, "资源不存在"),
    QUESTION_NOT_FOUND(4001, "未找到测试问题"),
    INVALID_DIMENSION(4002, "无效的MBTI维度参数"),
    TEST_SUBMIT_FAILED(4003, "测试提交失败");
    private final int code;
    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
